package com.haogu.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("tb_crm_business")
public class Business {
    @TableId(type= IdType.AUTO)
    private Integer id;
    @TableField(value = "name")
    private String name;
    private String origin;
    private String type;
    @TableField(value ="estimate_price" )
    private Integer estimatePrice;
    @TableField("customer_id")
    private Integer customerId;
    @TableField(value ="creator_user_id")
    private Integer creatorUserId;
    @TableField(value = "owner_user_id")
    private Integer ownerUserId;
    @TableField(value = "gain_rate")
    private Integer gainRate;
    @TableField(value = "total_amount")
    private Integer totalAmount;
    @TableField(value = "subtotal_val")
    private Float subtotalVal;
    @TableField(value = "discount_price")
    private Float discountPrice;
    private Float sales_price;
    private Date due_date;
    @TableField(fill = FieldFill.INSERT ,value = "create_time")
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE,value = "update_time")
    private Date updateTime;
    private Integer update_user_id;
    @TableField("status_id")
    private Integer statusId;
    @TableField(value = "total_price")
    private Float totalPrice;
    private String nextstep;
    @TableField(value = "nextstep_time")
    private Date nextstepTime;
    @TableField(value = "delete_status")
    @TableLogic
    private Integer delete_status;
    private Integer delete_user_id;
    private Date delete_time;
    @TableField(value = "contacts_id")
    private Integer contactsId;
    @TableField(value = "contract_address")
    private String contractAddress;
    private String description;


}
